#ifndef MYKEYSELECTOR_H_
#define MYKEYSELECTOR_H_

#include "KeySelector.h"
#include "XContext.h"
#include "StartStop.h"
#include "ApplyAction.h"
#include "layout/LayoutContext.h"

class MyKeySelector : public KeySelector {
public:
	MyKeySelector():KeySelector()
	{
	}

	virtual ~MyKeySelector()
	{
	}

	void init(AttributeHolder *attributes) {
		ActionSelector *a = new ActionSelector;
		a->registerAction("C-1",new PanelSelect(1));
		a->registerAction("C-2",new PanelSelect(2));
		a->registerAction("C-3",new PanelSelect(3));
		a->registerAction("C-4",new PanelSelect(4));
		a->registerAction("C-5",new PanelSelect(5));
		a->registerAction("C-X",new XContext);
		a->registerAction("C-S",new StartStop);
		a->registerAction("C-A",new BeginAction);
		a->registerAction("C-E",new EndAction);
		a->registerAction("C-C",new ClearStartStopAction);
		a->registerAction("C-W",new ApplyAction);
		
		a->registerAction("C-L",new LayoutContext);
		
		CURRENT_SELECTOR.set(attributes,a);
		ROOT_SELECTOR.set(attributes,a);
	}

	

};


#endif /*MYKEYSELECTOR_H_*/
